import axios from 'axios';
import { loginreq, req } from './axiosFun';
/**
 * 分类管理
 **/
export const shangpinxinxiList = (params) => { return req("post", "/api/shangpinfenlei/queryfenleiWithshangpinListByPage", params) };

// 分类管理-获取分类列表
export const shangpinfenleiList = (params) => { return req("post", "/api/shangpinfenlei/list/page", params) };

// 分类管理-保存
export const shangpinfenleiSave = (params) => { return req("post", "/api/shangpinfenlei/save", params) };
// 分类管理-编辑
export const shangpinfenleiEdit = (params) => { return req("post", "/api/shangpinfenlei/edit", params) };

// 分类管理-删除分类
export const shangpinfenleiDelete = (params) => { return axios.delete("/api/shangpinfenlei/del/" + params).then(res => res.data) };
// 分类管理-修改状态
export const shangpinfenleiStatus = (params) => { return req("post", "/api/shangpinfenlei/edit", params) };
// 分类管理-批量删除
export const shangpinfenleiBatchDel = (params) => { return req("post", "/api/shangpinfenlei/del/batch", params) };
